package com.ming.service;

import com.ming.client.UserRemoteClient;
import com.ming.pojo.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Xu
 * Created by Intellij IDEA.
 * @create 2021/8/2 14:26
 */
@Service
public class ProductService {
    @Autowired
    UserRemoteClient userRemoteClient;

    public List<Product> listProducts(){
        return userRemoteClient.listProducts();
    }
}
